package com.zsc.shixun.model.article;

import com.zsc.shixun.entity.Article;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/18
 */
@Service
@Mapper(componentModel = "spring")
public interface ArticleMapping {

    /**
     * @param article
     * @return
     */
    ArticleVO entityToVo(Article article);

    /**
     * entity to vo
     *
     * @param articleList
     * @return
     */
    List<ArticleVO> entitysToVos(List<Article> articleList);
}
